﻿using Authorization.Entitys.Model;
using Authorization.Entitys.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace Authorization.Entitys
{
    /// <summary>
    /// 身份认证上下文
    /// </summary>
    public class AspNetIdentityDbContext : IdentityDbContext
    {
        public virtual DbSet<User> User { get; set; }
        public virtual DbSet<AuthorizationUser> AuthorizationUser { get; set; }

        public AspNetIdentityDbContext(DbContextOptions<AspNetIdentityDbContext> options)
           : base(options)
        {

        }
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
        }
    }
}
